using UnityEngine;

public class AnimatorDefault : MonoBehaviour
{
    public float delayTime;
    public string anim_Name;
    Animator m_anim;
    void Start()
    {
        m_anim = GetComponent<Animator>();
        m_anim.enabled = false;
        Invoke("DelayPlayAnim", delayTime);

    }

    void DelayPlayAnim()
    {
        m_anim.enabled = true;

        if (m_anim != null && !string.IsNullOrEmpty(anim_Name))
        {
            m_anim.Play(anim_Name);
        }
    }

    // Update is called once per frame
    void Update()
    {

    }
}
